<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core" version="2.0">
	<jsp:directive.page contentType="text/html; charset=UTF-8"
		pageEncoding="UTF-8" session="true" />
	<jsp:output doctype-root-element="html"
		doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
		omit-xml-declaration="true" />
	<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>danydanino.be</title>


</head>
<body bgcolor="black">

	<pre>d   a   n   y   d   a   n   i   n   o</pre>

	<div id="name">
		<c:if test="${!empty userLogged }">
					Name: ${userLogged.getName()}	Role: ${userLogged.getRole()}
		</c:if>
	</div>

	<!--  Menu -->
	<div id="menu">
		<c:choose>
			<c:when test="${ userLogged.getRole()=='ADMIN' }">

				<TABLE width="80">
					<tr>
						<td align="center" id="monTd"><a href="#"
							onclick="alert(&quot;Cette methode n'est pas implémentée&quot;)"> User </a>
						</td>
						<td align="center" id="monTd"><a href="#"
							onclick="alert(&quot;Cette methode n'est pas implémentée&quot;)"> Post </a>
						</td>
						<td align="center" id="monTd"><a href="#"
							onclick="alert(&quot;Cette methode n'est pas implémentée&quot;)"> Stat </a>
						</td>
						<td align="center" id="monTd"><a href="LogOut"> Logout </a>
						</td>
					</tr>
				</TABLE>
			</c:when>
			<c:otherwise>
				<TABLE width="80">
					<tr>
						<td align="center" id="monTd"><a href="jsp/Login.jsp">Login</a>
						</td>
					</tr>
				</TABLE>
			</c:otherwise>
		</c:choose>
	</div>
	<c:choose>
		<c:when test="${ error!=null }">
			<p>
				<h1 id="error">${ error }</h1>
			</p>
		</c:when>
	</c:choose>
</body>
	</html>
</jsp:root>

